using System;
using System.Collections.Generic;
using System.Linq;
namespace MicroMsg.Storage
{
	public class ShakePeopleStorage : StorageTable<ShakePeople, string>
	{
		public ShakePeopleStorage() : base((ShakePeople sc) => sc.strUserName)
		{
		}
		public bool updateList(List<ShakePeople> shakeList)
		{
			return shakeList != null && shakeList.get_Count() > 0 && base.updateList<string>(shakeList, (ShakePeople s) => s.strUserName);
		}
		public void deleteTop(int int_0)
		{
			List<ShakePeople> scList = base.getList();
			scList = Enumerable.ToList<ShakePeople>(Enumerable.Take<ShakePeople>(Enumerable.OrderBy<ShakePeople, double>(scList, (ShakePeople shakePeople_0) => shakePeople_0.dblTimeStamp), int_0));
			if (!Enumerable.Any<ShakePeople>(scList))
			{
				return;
			}
			base.method_6((ShakePeople sc) => scList.Contains(sc));
		}
	}
}
